export interface responseData {
  code: number
  message: string
  ok: boolean
}
export interface tradmarkInfo {
  createTime: string
  id: number
  logoUrl: string
  tmName: string
  updateTime: string
  name?: string
}
export type tradmarkInfoArr = tradmarkInfo[]
export interface tradmarkInfoResponseData extends responseData {
  data: tradmarkInfoArr
}
export interface spuImageData {
  createTime?: string
  id?: number
  imgName?: string
  imgUrl?: string
  spuId?: number
  updateTime?: string
  name?: ''
  url?: ''
}
export type spuImageDataArr = spuImageData[]
export interface spuImageResponseData extends responseData {
  data: spuImageDataArr
}
export interface spuSaleAttrData {
  baseSaleAttrId: number
  createTime: null
  id: number
  isChecked: null
  saleAttrName: string
  saleAttrValueName: string
  spuId: number
  updateTime: null
}
export type spuSaleAttrValueList = spuSaleAttrData[]
export interface spuSaleAttrdata {
  baseSaleAttrId?: number
  createTime?: null
  id?: number
  saleAttrName: string
  spuId?: number
  updateTime?: null
  spuSaleAttrValueList?: spuSaleAttrValueList
  flag?: boolean
}
export type spuSaleAttrdataArr = spuSaleAttrdata[]
export interface spuSaleAttrResponseData {
  data: spuSaleAttrdataArr
}
export interface HasSaleAttr {
  id: number
  name: string
  createTime: null
  updateTime: null
}
export type HasSaleAttrArr = HasSaleAttr[]
export interface HasSaleAttrResponseData extends responseData {
  data: HasSaleAttr[]
}
export interface spuInfoData {
  category3Id: number | string
  createTime?: string
  description: string
  id: number | string
  spuImageList:
    | [
        {
          createTime: string
          id: number
          imgName: string
          imgUrl: string
          spuId: number
          updateTime: string
        }
      ]
    | []
  spuName: string
  spuPosterList:
    | [
        {
          createTime: string
          id: number
          imgName: string
          imgUrl: string
          spuId: number
          updateTime: string
        }
      ]
    | null
    | []
  spuSaleAttrList:
    | [
        {
          baseSaleAttrId: number
          createTime: string
          id: number
          saleAttrName: string
          spuId: number
          spuSaleAttrValueList: [
            {
              baseSaleAttrId: number
              createTime: string
              id: number
              isChecked: string
              saleAttrName: string
              saleAttrValueName: string
              spuId: number
              updateTime: string
            }
          ]
          updateTime: string
        }
      ]
    | []
  tmId: number | string
  updateTime?: string
}
